#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include "CanMgr.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWidget; }
QT_END_NAMESPACE

class MainWidget : public QWidget
{
    Q_OBJECT
    
public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();
    
private:
    void showCanInfo(bool isSend,PVCI_CAN_OBJ obj);
    
private slots:
    void on_BtnOpen_clicked();
    void on_BtnSend_clicked();
    
    void onRecvCanData(PVCI_CAN_OBJ objs,quint32 count);
    void onSendCanData(PVCI_CAN_OBJ obj);
    
    void on_pushButtonClear_clicked();
    
private:
    Ui::MainWidget *ui;
    
    CanMgr *m_pObjCanMgr;
};
#endif // MAINWIDGET_H
